package com.yincai.carefreewater.tool;

import android.util.Log;
import android.widget.Toast;

import com.yincai.carefreewater.base.MyApplication;


/**
 * Created by $zhangke on 2017/5/16.
 *
 * 吐司工具
 */

public class ToastTool {
    public static  void  toast(String msg){
        Log.i("tag", "toast: "+ MyApplication.getInsatence());
        try {
            Toast.makeText(MyApplication.getInsatence(),msg, Toast.LENGTH_SHORT).show();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    public static  void  toastLong(String msg){
        Log.i("tag", "toast: "+MyApplication.getInsatence());
       Toast.makeText(MyApplication.getInsatence(),msg, Toast.LENGTH_LONG).show();
    }

}
